<?
	require_once('init.php');
	require_once('dataModel.php');

	$_SESSION["MenuID"]='';

	$strSQL="select * ";  
	$strSQL .="from userInfo ";  
	$strSQL .="where id='".$_SESSION["UID"]."' limit 0,1 "; 

	$db = MySQL::getInstance('','r-w'); 
	$DBR=$db->query($strSQL); 
  	$result=$db->fetch($DBR);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?='utf-8';?>" />
	<title><?=$AllPageTitle;?></title>
	<link href="css/CenterMenu.css" rel="stylesheet" type="text/css" />
	
	
	<? include("alljs.php"); ?>
	
	<script language="javascript">
   		function CheckData()
   		{
			var strSQL = "";                      
			strSQL+= "email=";
			strSQL+=$("#email").attr("value");
			strSQL+= "&telCode=";
			strSQL+=$("#telCode").attr("value");
			strSQL+= "&qqCode=";
			strSQL+=$("#qqCode").attr("value");
			strSQL+= "&Type=edituserinfo";
			
//			alert (strSQL);
			
			$.post("varifyData.php",strSQL,function(msg)
			{

//			    alert (msg);
			    
			   	if (msg=='1')
			   	{	
					parent.hiAlert("<?=$struserinfosuccess;?>", '<?=$strclueinfo;?>');
					$("#email").focus();
					return false;
			   	}
			})
	    }    
	</script>
</head>


<body>
	<div id="MenuRighttitle" ><div style="padding-left:245px;padding-top:5px;"><b><?=$strbaseinfo;?></b></div></div>
	
	<div class="inner-container">
		<div class="bodypart" style="border:0px solid blue;">	
			<div style="padding-left: 120px; margin-top: 20px; text-align: left; min-height: 300px;border:0px solid blue;">
				<div class="userpwd-a04"><b><?=$strmemberid.":";?></b></div>
				<div class="userpwd-a05"><b><?=$_SESSION["UID"];?></b></div>

				<div class="userpwd-a04" ><b><?=$struserid.":";?></b></div>
				<div class="userpwd-a05" ><b><?=$_SESSION["userName"];?></b></div>
				<div class="userpwd_a03"></div>


				<div class="userpwd-a04" style="margin-top:20px;"><b><?=$stremail.":";?></b></div>
				<div class="userpwd-a05" style="margin-top:20px;"><input type="text" id="email" name="email" value="<?=$result["email"];?>" size="30" maxlength="50" class="userinfo_textbox" /></div>

				<div class="userpwd-a04" style="margin-top:20px;"><b><?=$strContacttel.":";?></b></div>
				<div class="userpwd-a05" style="margin-top:20px;"><input type="text" id="telCode" name="telCode" value="<?=$result["telCode"];?>" size="30" maxlength="20" class="userinfo_textbox" /></div>

				<div class="userpwd-a04" style="margin-top:20px;"><b><?="QQ:";?></b></div>
				<div class="userpwd-a05" style="margin-top:20px;"><input type="text" id="qqCode" name="qqCode" value="<?=$result["qqCode"];?>" size="30" maxlength="10" class="userinfo_textbox" /></div>
				
				<div class="userpwd-a01" style="margin-top: 20px;width:500px;text-align:center;border:0px solid blue;">
					<input type="image" name="submitimage" src="<?=$lng_imagepath;?>submit_btn.gif" value="Submitimage" onclick="javascript:CheckData();" />
					<input type="hidden" value="submit" name="submit" />
				</div>
			</div>
		</div>
	</div>
</body>

</html>
